<template>
    <div>
        <HomePageHead></HomePageHead>
        <HomePageNavigation></HomePageNavigation> 
        <HomeSecondaryHeading :titleData="pageData" :pinyinid="routeId"></HomeSecondaryHeading>

        <div class="farmingPartOne">
            <div class="inner">
                <div class="innerLeft" v-if="newsData.length > 0">
                    <div class="title">
                        <h3>
                            <NuxtLink :href="getLinkPath(newsData[0])" v-if="newsData[0]" :title="newsData[0].alias">
                                {{ newsData[0].alias }}
                            </NuxtLink>
                            <span>
                                <!-- <NuxtLink :href="getLinkPath(newsData[0])" v-if="newsData[0]"
                                    :title="newsData[0].title">
                                    查看更多
                                </NuxtLink> -->
                            </span>
                        </h3>
                    </div>
                    <div class="leftTop">
                        <div class="leftTopPhoto left" v-if="newsData[0].data[0]">
                            <NuxtLink :href="getLinkPathDetail(newsData[0].data[0])" :title="newsData[0].data[0].title">
                                <img :src="newsData[0].data[0].imgurl" :alt="newsData[0].data[0].title">
                                <span>{{ newsData[0].data[0].title }}</span>
                            </NuxtLink>
                        </div>
                        <div class="leftTopPhoto left" v-else></div>
                        <ul class="left">
                            <li v-for="item in newsData[0].data3">
                                <em></em>
                                <span>
                                    <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
                                        {{ item.title }}
                                    </NuxtLink>
                                </span>
                            </li>
                        </ul>
                    </div>
                    <ul class="leftBottom" v-if="newsData[0].data2[0] != null">
                        <li v-for="item in newsData[0].data2">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
                                <img :src="item.imgurl" :alt="item.title">
                            </NuxtLink>
                            <p>
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
                                    {{ item.title }}
                                </NuxtLink>
                            </p>
                        </li>
                    </ul>
                </div>
 
                <div class="innerRight" v-if="newsData.length >= 2">
                    <div class="title">
                        <h3>
                            <NuxtLink :href="getLinkPath(newsData[1])" v-if="newsData[1]" :title="newsData[1].alias">
                                {{ newsData[1].alias }}
                            </NuxtLink>
                            <span>
                                <!-- <NuxtLink :href="getLinkPath(newsData[1])" v-if="newsData[1]"
                                    :title="newsData[1].title">
                                    查看更多
                                </NuxtLink> -->
                            </span>
                        </h3>
                    </div>
                    <ul class="rightList" :class="{ 'add_height': newsData[1] && newsData[1].data.length === 0 }">
                          
                        <li v-for="item in newsData[1].data">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
                                <img class="left" :src="item.imgurl" :alt="item.title">
                            </NuxtLink>
                            <p class="left">
                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
                                    {{ item.title }}
                                </NuxtLink>
                            </p>
                        </li>


                    </ul>
                </div>
            </div>
        </div>
        <HomeTopTen :imgurl="adImg1" v-if="adImg1"></HomeTopTen>
        <div class="farmingPartTwo" v-if="newsData.length >= 3">
            <div class="inner">
                <div class="farmer" v-if="newsData.length >= 3">
                    <div class="title">
                        <h3>
                            <NuxtLink :href="getLinkPath(newsData[2])" v-if="newsData[2]" :title="newsData[2].alias">
                                {{ newsData[2].alias }}
                            </NuxtLink>
                            <span>
                                <!-- <NuxtLink :href="getLinkPath(newsData[2])" v-if="newsData[2]"
                                    :title="newsData[2].title">
                                    查看更多
                                </NuxtLink> -->
                            </span>
                        </h3>
                    </div>
                    <div class="PartTwoPhoto">
                        <div v-if="newsData[2].data[0]">
                            <NuxtLink :href="getLinkPathDetail(newsData[2].data[0])" :title="newsData[2].data[0].title">
                                <img :src="newsData[2].data[0].imgurl" :alt="newsData[2].data[0].title">
                                <span>{{ newsData[2].data[0].title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                    <ul class="PartTwoList">
                        <li v-for="item in newsData[2].data2">
                            <em></em>
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
                                {{ item.title }}
                            </NuxtLink>
                        </li>
                    </ul>
                </div>
                <div class="farmer" v-if="newsData.length >= 4">
                    <div class="title">
                        <h3>
                            <NuxtLink :href="getLinkPath(newsData[3])" v-if="newsData[3]" :title="newsData[3].alias">
                                {{ newsData[3].alias }}
                            </NuxtLink>
                            <span>
                                <!-- <NuxtLink :href="getLinkPath(newsData[3])" v-if="newsData[3]"
                                    :title="newsData[3].title">
                                    查看更多
                                </NuxtLink> -->
                            </span>
                        </h3>
                    </div>
                    <div class="PartTwoPhoto">
                        <div v-if="newsData[3].data[0]">
                            <NuxtLink :href="getLinkPathDetail(newsData[3].data[0])" :title="newsData[3].data[0].title">
                                <img :src="newsData[3].data[0].imgurl" :alt="newsData[3].data[0].title">
                                <span>{{ newsData[3].data[0].title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                    <ul class="PartTwoList">
                        <li v-for="item in newsData[3].data2">
                            <em></em>
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
                                {{ item.title }}
                            </NuxtLink>
                        </li>
                    </ul>
                </div>
                <div class="farmer" v-if="newsData.length >= 5">
                    <div class="title">
                        <h3>
                            <NuxtLink :href="getLinkPath(newsData[4])" v-if="newsData[4]" :title="newsData[4].alias">
                                {{ newsData[4].alias }}
                            </NuxtLink>
                            <span>
                                <!-- <NuxtLink :href="getLinkPath(newsData[4])" v-if="newsData[4]"
                                    :title="newsData[4].title">
                                    查看更多
                                </NuxtLink> -->
                            </span>
                        </h3>
                    </div>
                    <div class="PartTwoPhoto">
                        <div v-if="newsData[4].data[0]">
                            <NuxtLink :href="getLinkPathDetail(newsData[4].data[0])" :title="newsData[4].data[0].title">
                                <img :src="newsData[4].data[0].imgurl" :alt="newsData[4].data[0].title">
                                <span>{{ newsData[4].data[0].title }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                    <ul class="PartTwoList">
                        <li v-for="item in newsData[4].data2">
                            <em></em>
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
                                {{ item.title }}
                            </NuxtLink>
                        </li>
                    </ul>
                </div>
                <div class="farmer" v-if="goodsData.length > 0">
                    <div class="title">
                        <h3>
                            <NuxtLink :href="getLinkPath(goodsData[0])" v-if="goodsData[0]" :title="goodsData[0].alias">
                                {{ goodsData[0].alias }}
                            </NuxtLink>
                            <span>
                                <!-- <NuxtLink :href="getLinkPath(goodsData[0])" v-if="goodsData[0]"
                                    :title="goodsData[0].alias">
                                    查看更多
                                </NuxtLink> -->
                            </span>
                        </h3>
                    </div>
                    <div class="PartTwoPhoto">
                        <div v-if="goodsData[0].data[0]">
                            <NuxtLink :href="getLinkPathDetail(goodsData[0].data[0])"
                                :title="goodsData[0].data[0].name">
                                <img :src="goodsData[0].data[0].imgurl" :alt="goodsData[0].data[0].name">
                                <span>{{ goodsData[0].data[0].name }}</span>
                            </NuxtLink>
                        </div>
                    </div>
                    <ul class="PartTwoList">
                        <li v-for="item in goodsData[0].data2">
                            <em></em>
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
                                {{ item.name }}
                            </NuxtLink>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <HomeTopTen :imgurl="adImg2" v-if="adImg2"></HomeTopTen>
        <div class="zixuntuijian" v-if="newsData.length >= 6">
            <div class="inner">
                <div class="innerLeft">
                    <div class="zixunTop">
                        <div class="zixunLeft" v-if="newsData.length >= 6">
                            <div class="title">
                                <h3>
                                    <NuxtLink :href="getLinkPath(newsData[5])" v-if="newsData[5]"
                                        :title="newsData[5].alias">
                                        {{ newsData[5].alias }}
                                    </NuxtLink>
                                    <span>
                                        <!-- <NuxtLink :href="getLinkPath(newsData[5])" v-if="newsData[5]"
                                            :title="newsData[5].title">
                                            查看更多
                                        </NuxtLink> -->
                                    </span>
                                </h3>
                            </div> 
                            <!-- <ul class="photo_text" v-if="newsData[5].data[0] != null" > -->
                            <ul class="photo_text" :class="{ 'add_height':newsData[5].data.length === 0 }" > 
                                <li v-for="item in newsData[5].data">
                                    <article>
                                        <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
                                            <img :src="item.imgurl" :alt="item.title">
                                        </NuxtLink>
                                        <div>
                                            <h5>
                                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
                                                    {{ item.title }}
                                                </NuxtLink>
                                            </h5>
                                            <p>
                                                <span>{{ item.author }}</span>
                                                <span>{{ getTime(item.updated_at, 'month', 1) }}</span>
                                            </p>
                                        </div>
                                    </article>
                                </li>
                                <li v-for="item in newsData[5].data2">
                                    <article>
                                        <em></em>
                                        <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
                                            {{ item.title }}
                                        </NuxtLink>
                                    </article>
                                </li>
                            </ul>
                        </div>
                        <div class="zixunRight" v-if="newsData.length >= 7">
                            <div class="title">
                                <h3>
                                    <NuxtLink :href="getLinkPath(newsData[6])" v-if="newsData[6]"
                                        :title="newsData[6].alias">
                                        {{ newsData[6].alias }}
                                    </NuxtLink>
                                    <span>
                                        <!-- <NuxtLink :href="getLinkPath(newsData[6])" v-if="newsData[6]"
                                            :title="newsData[6].title">
                                            查看更多
                                        </NuxtLink> -->
                                    </span>
                                </h3>
                            </div>
                            <div class="towPic">
                                <div v-for="item in newsData[6].data" class="picBox">
                                    <div>
                                        <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
                                            <img :src="item.imgurl" :alt="item.title">
                                            <span>{{ item.title }}</span>
                                        </NuxtLink>
                                    </div>
                                </div>
                            </div>
                            <ul class="photo_text" :class="{ 'add_height':newsData[6].data2.length === 0 }">
                                <li v-for="item in newsData[6].data2">
                                    <article>
                                        <em></em>
                                        <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
                                            {{ item.title }}
                                        </NuxtLink>
                                    </article>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="zixunBottom" v-if="newsData.length >= 8">
                        <NuxtLink :href="getLinkPathDetail(newsData[7].data[0])"
                            v-if="newsData[7].data[0] && hoverStatus == 0">
                            <img class="left" :src="newsData[7].data[0].imgurl" :alt="newsData[7].data[0].title">
                        </NuxtLink>
                        <NuxtLink :href="getLinkPathDetail(newsData[7].data[1])"
                            v-if="newsData[7].data[1] && hoverStatus == 1">
                            <img class="left" :src="newsData[7].data[1].imgurl" :alt="newsData[7].data[1].title">
                        </NuxtLink>
                        <NuxtLink :href="getLinkPathDetail(newsData[7].data[2])"
                            v-if="newsData[7].data[2] && hoverStatus == 2">
                            <img class="left" :src="newsData[7].data[2].imgurl" :alt="newsData[7].data[2].title">
                        </NuxtLink>
                        <NuxtLink :href="getLinkPathDetail(newsData[7].data[3])"
                            v-if="newsData[7].data[3] && hoverStatus == 3">
                            <img class="left" :src="newsData[7].data[3].imgurl" :alt="newsData[7].data[3].title">
                        </NuxtLink>
                        <NuxtLink :href="getLinkPathDetail(newsData[7].data[4])"
                            v-if="newsData[7].data[4] && hoverStatus == 4">
                            <img class="left" :src="newsData[7].data[4].imgurl" :alt="newsData[7].data[4].title">
                        </NuxtLink>
                        <NuxtLink :href="getLinkPathDetail(newsData[7].data[5])"
                            v-if="newsData[7].data[5] && hoverStatus == 5">
                            <img class="left" :src="newsData[7].data[5].imgurl" :alt="newsData[7].data[5].title">
                        </NuxtLink>
                        <ul class="leftList left">
                            <li v-for="(item, index) in newsData[7].data" @mouseenter="qhPic(index)">
                                <h4>
                                    <em></em>
                                    <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
                                        {{ item.title }}
                                    </NuxtLink>
                                </h4>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="innerRight " v-if="newsData.length >= 8">
                    <div class="title">
                        <h3 class="phone_head_1">
                            <NuxtLink :href="getLinkPath(newsData[7])" v-if="newsData[7]" :title="newsData[7].alias">
                                {{ newsData[7].alias }}
                            </NuxtLink>
                            <span>
                                <!-- <NuxtLink :href="getLinkPath(newsData[7])" v-if="newsData[7]"
                                    :title="newsData[7].title">
                                    查看更多
                                </NuxtLink> -->
                            </span>
                        </h3>
                    </div>
                    <ul class="information" :class="{ 'add_height':newsData[7].data.length === 0 }">
                        <li v-for="item in newsData[7].data2">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
                                <img :src="item.imgurl" :alt="item.title">
                            </NuxtLink>
                            <div class="text">
                                <h5>
                                    <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
                                        {{ item.title }}
                                    </NuxtLink>
                                </h5>
                                <p>{{ item.author }}</p>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="zixuntuijian" v-if="goodsData.length > 1">
            <div class="inner">
                <div class="innerLeft">
                    <div class="zixunTop">
                        <div class="zixunLeft" v-if="goodsData.length > 1">
                            <div class="title">
                                <h3>
                                    <NuxtLink :href="getLinkPath(goodsData[1])" v-if="goodsData[1]"
                                        :title="goodsData[1].alias">
                                        {{ goodsData[1].alias }}
                                    </NuxtLink>
                                    <span>
                                        <!-- <NuxtLink :href="getLinkPath(goodsData[1])" v-if="goodsData[1]"
                                            :title="goodsData[1].name">
                                            查看更多
                                        </NuxtLink> -->
                                    </span>
                                </h3>
                            </div> 
                            <ul class="photo_text" :class="{ 'add_height':goodsData[1].data.length === 0 }">
                                <li v-for="item in goodsData[1].data">
                                    <article>
                                        <NuxtLink :href="getLinkPathDetail(item)" :title="item.name">
                                            <img :src="item.imgurl" :alt="item.name">
                                        </NuxtLink>
                                        <div>
                                            <h5>
                                                <NuxtLink :href="getLinkPathDetail(item)" :title="item.name">
                                                    {{ item.name }}
                                                </NuxtLink>
                                            </h5>
                                            <p>
                                                <span>{{ item.author }}</span>
                                                <span>{{ getTime(item.updated_at, 'month', 1) }}</span>
                                            </p>
                                        </div>
                                    </article>
                                </li>
                                <li v-for="item in goodsData[1].data2">
                                    <article>
                                        <em></em>
                                        <NuxtLink :href="getLinkPathDetail(item)" :title="item.name">
                                            {{ item.name }}
                                        </NuxtLink>
                                    </article>
                                </li>
                            </ul>
                        </div>
                        <div class="zixunRight" v-if="goodsData.length > 2">
                            <div class="title">
                                <h3>
                                    <NuxtLink :href="getLinkPath(goodsData[2])" v-if="goodsData[2]"
                                        :title="goodsData[2].alias">
                                        {{ goodsData[2].alias }}
                                    </NuxtLink>
                                    <span>
                                        <!-- <NuxtLink :href="getLinkPath(goodsData[2])" v-if="goodsData[2]"
                                            :title="goodsData[2].title">
                                            查看更多
                                        </NuxtLink> -->
                                    </span>
                                </h3>
                            </div>
                            <div class="towPic">
                                <div v-for="item in goodsData[2].data" class="picBox">
                                    <div>
                                        <NuxtLink :href="getLinkPathDetail(item)" :title="item.name">
                                            <img :src="item.imgurl" :alt="item.name">
                                        </NuxtLink>
                                    </div>
                                </div>
                            </div>
                            <ul class="photo_text">
                                <li v-for="item in goodsData[2].data2">
                                    <article>
                                        <em></em>
                                        <NuxtLink :href="getLinkPathDetail(item)" :title="item.name">
                                            {{ item.name }}
                                        </NuxtLink>
                                    </article>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="zixunBottom" v-if="goodsData[1].data3">
                        <NuxtLink :href="getLinkPathDetail(goodsData[1].data3[0])"
                            v-if="goodsData[1].data3[0] && hoverStatus == 0">
                            <img class="left" :src="goodsData[1].data3[0].imgurl" :alt="goodsData[1].data3[0].title">
                        </NuxtLink>
                        <NuxtLink :href="getLinkPathDetail(goodsData[1].data3[1])"
                            v-if="goodsData[1].data3[1] && hoverStatus == 1">
                            <img class="left" :src="goodsData[1].data3[1].imgurl" :alt="goodsData[1].data3[1].title">
                        </NuxtLink>
                        <NuxtLink :href="getLinkPathDetail(goodsData[1].data3[2])"
                            v-if="goodsData[1].data3[2] && hoverStatus == 2">
                            <img class="left" :src="goodsData[1].data3[2].imgurl" :alt="goodsData[1].data3[2].title">
                        </NuxtLink>
                        <NuxtLink :href="getLinkPathDetail(goodsData[1].data3[3])"
                            v-if="goodsData[1].data3[3] && hoverStatus == 3">
                            <img class="left" :src="goodsData[1].data3[3].imgurl" :alt="goodsData[1].data3[3].title">
                        </NuxtLink>
                        <NuxtLink :href="getLinkPathDetail(goodsData[1].data3[4])"
                            v-if="goodsData[1].data3[4] && hoverStatus == 4">
                            <img class="left" :src="goodsData[1].data3[4].imgurl" :alt="goodsData[1].data3[4].title">
                        </NuxtLink>
                        <NuxtLink :href="getLinkPathDetail(goodsData[1].data3[5])"
                            v-if="goodsData[1].data3[5] && hoverStatus == 5">
                            <img class="left" :src="goodsData[1].data3[5].imgurl" :alt="goodsData[1].data3[5].title">
                        </NuxtLink>
                        <ul class="leftList left">
                            <li v-for="(item, index) in goodsData[1].data3" @mouseenter="qhPic(index)">
                                <h4>
                                    <em></em>
                                    <NuxtLink :href="getLinkPathDetail(item)" :title="item.name">
                                        {{ item.name }}
                                    </NuxtLink>
                                </h4>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="innerRight " v-if="goodsData.length > 3">
                    <div class="title">
                        <h3>
                            <NuxtLink :href="getLinkPath(goodsData[3])" v-if="goodsData[3]" :title="goodsData[3].alias">
                                 {{ goodsData[3].alias }}
                            </NuxtLink>
                            <span>
                                <!-- <NuxtLink :href="getLinkPath(goodsData[3])" v-if="goodsData[3]"
                                    :title="goodsData[3].title">
                                    查看更多
                                </NuxtLink> -->
                            </span>
                        </h3>
                    </div>
                    
                    
                    <ul class="information" >
                        <li v-for="item in goodsData[3].data">
                            <NuxtLink :href="getLinkPathDetail(item)" :title="item.name">
                                <img :src="item.imgurl" :alt="item.name">
                            </NuxtLink>
                            <div class="text">
                                <h5>
                                    <NuxtLink :href="getLinkPathDetail(item)" :title="item.name">
                                        {{ item.name }}
                                    </NuxtLink>
                                </h5>
                                <p>{{ item.author }}</p>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
         
        <HomeTopTen :imgurl="adImg3" v-if="adImg3"></HomeTopTen>
        
        <div class="part_1"></div>
        <!-- 十强称号logo -->
        <HomeTopTen :imgurl="adImg4" v-if="adImg4"></HomeTopTen>
         
        <!-- 页脚部分 -->
        <HomeFoot1></HomeFoot1>
    </div>
</template>

<script setup>
//0.加载页面依赖 start ---------------------------------------->
import { ref, onMounted } from 'vue';
import { ElMessage } from 'element-plus';

//格式化跳转路径 - 标题
//首页分类栏目标题，不需要考虑外链
const getLinkPath = (item) => {
    //return `/${item.url}/1.html`;
    //return `/newsList/${item.cid}?page=1`;
    return `/${item.aLIas_pinyin}/list-1.html`;
}
//首页跳转到详情，这里需要考虑外链
const getLinkPathDetail = (item) => {
    if (item.islink == 1) {
        return `${item.linkurl}`;
    } else {
        //return `/${item.aLIas_pinyin}/${item.id}`;
        //return `/newsDetail/${item.id}`
        return `/${item.pinyin}/${item.id}.html`;
    }
}
//0.加载页面依赖 end ---------------------------------------->

//1.获得路由id start ---------------------------------------->
const route = useRoute();

//获得当前的完整路径
const fullPath = route.path;
//拆分，取出来中间这一段，然后提取数字部分
const segments = fullPath.split('/');
const targetSegment = segments[1];
//let routeId = 11 //排除路径错误可以打开这个
//const numberPart = targetSegment.match(/\d+$/)?.[0]; 
//let routeId = numberPart;
let routeId;
//通过导航路径反向查询导航id
const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
    method: 'GET',
    query: {
        'pinyin': targetSegment,
    },
});
if (getRouteId.code == 200) {
    routeId = getRouteId.data.category_id
} else {
    console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
    console.log("错误位置：通过url路径查询导航池id")
    console.log("后端错误反馈：", getRouteId.message)
    console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
}
//1.获得路由id end ---------------------------------------->

//2.页面交互效果 start ---------------------------------------->
//2.1 新闻图片切换
const hoverStatus = ref(0)
const qhPic = function (num) {
    console.log(num)
    hoverStatus.value = num;
}

//2.2 选项卡切换
let showTabs = ref(1)
let qhtabs = function (number) {
    console.log(number)
    showTabs.value = number
}

//2.3 展示广告
let adImg1 = ref({})
let adImg2 = ref({})
let adImg3 = ref({})
let adImg4 = ref({})
onMounted(async () => {
    //从客户端获取行政职能部门 加快打开速度
    const { $webUrl, $CwebUrl } = useNuxtApp();
    //广告1
    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0001`
    const responseAd1 = await fetch(url, {
        headers: {
            'Content-Type': 'application/json',
            'Userurl': $CwebUrl,
            'Origin': $CwebUrl
        }
    });
    const resultAd1 = await responseAd1.json();
    adImg1.value = resultAd1.data[0];

    //广告2
    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0002`
    const responseAd2 = await fetch(url2, {
        headers: {
            'Content-Type': 'application/json',
            'Userurl': $CwebUrl,
            'Origin': $CwebUrl
        }
    });
    const resultAd2 = await responseAd2.json();
    adImg2.value = resultAd2.data[0];

    //广告3
    let url3 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0003`
    const responseAd3 = await fetch(url3, {
        headers: {
            'Content-Type': 'application/json',
            'Userurl': $CwebUrl,
            'Origin': $CwebUrl
        }
    });
    const resultAd3 = await responseAd3.json();
    adImg3.value = resultAd3.data[0];

    //广告4
    let url4 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0004`
    const responseAd4 = await fetch(url4, {
        headers: {
            'Content-Type': 'application/json',
            'Userurl': $CwebUrl,
            'Origin': $CwebUrl
        }
    });
    const resultAd4 = await responseAd4.json();
    adImg4.value = resultAd4.data[0];

})
//2.页面交互效果 end ---------------------------------------->

//3.渲染页面数据 start ---------------------------------------->
//3.1 该页面上所有的导航池 转为动态数据
const pageCategory = ref([]);
//3.2 该页面上需要渲染的所有数据
const pageData = ref([
    // { id: 0, data: [], data2: [], title: "", cid: "" },
    // { id: 1, data: [], title: "", cid: "" },
    // { id: 2, data: [], title: "", cid: "" },
    // { id: 3, data: [], title: "", cid: "" },
    // { id: 4, data: [], title: "", cid: "" },
    // { id: 5, data: [], title: "", cid: "" },
    // { id: 6, data: [], title: "", cid: "" },
    // { id: 7, data: [], title: "", cid: "" },
    // { id: 8, data: [], title: "", cid: "" },
    // { id: 9, data: [], title: "", cid: "" },
    // { id: 10, data: [], title: "", cid: "" },
])
// 商品
const goodsData = ref([]);
const newsData = ref([])

const navSize = ref("");

//3.3 获取所有导航
try {
    const navigateData = await requestDataPromise('/web/getWebsiteModelCategory', {
        method: 'GET',
        query: {
            'placeid': 1,
            'pid': routeId,
            'num': 8
        },
    });
    // console.log('navigateData1111111', navigateData)
    if (navigateData.code == 200) {
        // 遍历可用的导航池放到页面中
        for (let index in navigateData.data) {
            let data = {
                title: navigateData.data[index].name,
                cid: navigateData.data[index].category_id,
                children_count: navigateData.data[index].children_count,
                alias: navigateData.data[index].alias,
                aLIas_pinyin: targetSegment + "/" + navigateData.data[index].aLIas_pinyin,
                data: [],
                data1: [],
                data2: [],
                data3: [],
                data4: [],
                category_id1: "",
                category_id2: "",
                category_id3: "",
                category_id4: "",
                title1: "",
                title2: "",
                title3: "",
                title4: ""
            };
            if (navigateData.data[index].is_url == 1) {
                // 处理 URL 的逻辑
            } else {
                if (navigateData.data[index].type == 1) {
                    newsData.value.push(data);
                } else if (navigateData.data[index].type == 2) {
                    goodsData.value.push(data);
                }
                //每个页面最多8个模块
                pageData.value.push(data);
            }
        }
        // console.log("导航池11111newsData", newsData.value);
        // console.log("导航池11111goods", goodsData.value);
        // console.log("导航池11111pageData", pageData.value);

        let goodsJson = []
        for (let i = 0; i < goodsData.value.length; i++) {
            if (i == 0) {
                goodsJson.push({ "catid": goodsData.value[0].cid + ",0,7" });
            } else if (i == 1) {
                goodsJson.push({ "catid": goodsData.value[1].cid + ",0,9" });
            } else if (i == 2) {
                goodsJson.push({ "catid": goodsData.value[2].cid + ",0,5" });
            } else if (i == 3) {
                goodsJson.push({ "catid": goodsData.value[3].cid + ",0,4" });
            }
        }
        let goodsJsonString = JSON.stringify(goodsJson);
        getPageGoodspageData(goodsJsonString);

        //导航池加载完毕，开始申请模块数据
        let getJson = [
            // { "parent": routeId + ",0,0", "child": newsData.value[0].cid + ",5,8" },//模块1理论前沿
            // { "parent": routeId + ",0,0", "child": newsData.value[1].cid + ",5,0" },//模块2典型经验
            // { "parent": routeId + ",0,0", "child": newsData.value[2].cid + ",1,6" },//模块3农业天地
            // { "parent": routeId + ",0,0", "child": newsData.value[3].cid + ",1,6" },//模块4美丽乡村
            // { "parent": routeId + ",0,0", "child": newsData.value[4].cid + ",1,6" },//模块5农民之家
            // { "parent": routeId + ",0,0", "child": newsData.value[5].cid + ",6,3" },//模块6农业天地
            // { "parent": routeId + ",0,0", "child": newsData.value[6].cid + ",2,3" },//模块7农村建设
            // { "parent": routeId + ",0,0", "child": newsData.value[7].cid + ",4,0" },//模块8高端资讯
        ]
        for (let i = 0; i < newsData.value.length; i++) {
            if (i == 0) {
                getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[0].cid + ",5,8" });//模块1理论前沿
            } else if (i == 1) {
                getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[1].cid + ",5,0" });//模块2典型经验
            } else if (i == 2) {
                getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[2].cid + ",1,6" });//模块3农业天地
            } else if (i == 3) {
                getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[3].cid + ",1,6" });//模块4美丽乡村
            } else if (i == 4) {
                getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[4].cid + ",1,6" });//模块5农民之家
            } else if (i == 5) {
                getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[5].cid + ",6,3" });//模块6农业天地
            } else if (i == 6) {
                getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[6].cid + ",2,3" });//模块7农村建设
            } else if (i == 7) {
                getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[7].cid + ",4,0" });//模块8高端资讯
            }
        }

        let jsonString = JSON.stringify(getJson);
        getPagepageData(jsonString);

    } else {
        // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
        // console.log("错误位置：分类页导航池")
        // console.log("后端错误反馈：", navigateData.message)
        // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
    }
} catch (error) {
    console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
    console.log("错误位置：分类页导航渲染阶段")
    console.log("错误：导航池渲染执行接口出错！请检查首页的14的模块的具体执行方法！")
    console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
}

// 获取商品数据 start--------------------------------------->
async function getPageGoodspageData(goodsJsonString) {
    const mkdata = await requestDataPromise('/web/getWebsiteCatidshop', {
        method: 'GET',
        query: {
            'catid': goodsJsonString
        },
    });
    // console.log("获取商品数据", mkdata);
    if (mkdata.code == 200) {
        //模块1
        for (let index in mkdata.data[0]) {
            if (index < 1) {
                goodsData.value[0].data.push(mkdata.data[0][index]);
            } else {
                goodsData.value[0].data2.push(mkdata.data[0][index]);
            }
        }
        //模块2
        for (let index in mkdata.data[1]) {
            if (index < 1) {
                goodsData.value[1].data.push(mkdata.data[1][index]);
            } else if (index < 4) {
                goodsData.value[1].data2.push(mkdata.data[1][index]);
            } else {
                goodsData.value[1].data3.push(mkdata.data[1][index]);
            }
        }
        // 模块3
        for (let index in mkdata.data[2]) {
            if (index < 2) {
                goodsData.value[2].data.push(mkdata.data[2][index]);
            } else {
                goodsData.value[2].data2.push(mkdata.data[2][index]);
            }
        }
        // 模块411
        // console.log("模块4-----------------------------------------------", mkdata);
        goodsData.value[3].data = mkdata.data[3];

    }
}
// 获取商品数据 end----------------------------------------->

// 获取资讯数据 start----------------------------------------->
async function getPagepageData(jsonString) {
    const mkdata = await requestDataPromise('/web/getWebsiteAllArticle', {
        method: 'GET',
        query: {
            'id': jsonString
        },
    });

    if (mkdata.code == 200) {
        console.log(778899)
        console.log(mkdata.data)
        //模块1理论前沿
        if (mkdata.data[0].child.imgnum.length > 0) {
            newsData.value[0].data.push(mkdata.data[0].child.imgnum[0]);
        }
        if (mkdata.data[0].child.imgnum.length > 1) {
            newsData.value[0].data2.push(mkdata.data[0].child.imgnum[1]);
        }
        if (mkdata.data[0].child.imgnum.length > 2) {
            newsData.value[0].data2.push(mkdata.data[0].child.imgnum[2]);
        }
        if (mkdata.data[0].child.imgnum.length > 3) {
            newsData.value[0].data2.push(mkdata.data[0].child.imgnum[3]);
        }
        if (mkdata.data[0].child.imgnum.length > 4) {
            newsData.value[0].data2.push(mkdata.data[0].child.imgnum[4]);
        }
        newsData.value[0].data3 = mkdata.data[0].child.textnum;
        //模块2典型经验
        newsData.value[1].data = mkdata.data[1].child.imgnum;
        //模块3农业天地
        newsData.value[2].data = mkdata.data[2].child.imgnum;
        newsData.value[2].data2 = mkdata.data[2].child.textnum;
        //模块4美丽乡村
        newsData.value[3].data = mkdata.data[3].child.imgnum;
        newsData.value[3].data2 = mkdata.data[3].child.textnum;
        //模块5农民之家
        newsData.value[4].data = mkdata.data[4].child.imgnum;
        newsData.value[4].data2 = mkdata.data[4].child.textnum;
        //模块6农业天地 注意，三农资讯网跟其他行星站不一样，你不需要复制我这个
        //因为本来二级分类页有9个模块，但是实际应用中只有8个，所以我把本来是模块7
        //的地方和现有的模块6合并成1个了
        if (mkdata.data[5].child.imgnum.length > 0) {
            newsData.value[5].data.push(mkdata.data[5].child.imgnum[0]);
        }
        newsData.value[5].data2 = mkdata.data[5].child.textnum;
        //把模块6的内容放到模块7中一部分
        for (let i = 1; i < mkdata.data[5].child.imgnum.length && i <= 5; i++) {
            newsData.value[7].data.push(mkdata.data[5].child.imgnum[i]);
        }
        //模块7农村建设
        newsData.value[6].data = mkdata.data[6].child.imgnum;
        newsData.value[6].data2 = mkdata.data[6].child.textnum;
        //模块8高端资讯
        newsData.value[7].data2 = mkdata.data[7].child.imgnum;

    } else {
        ElMessage.error(mkdata.message)
    }
}
// 获取资讯数据 end----------------------------------------->

//3.渲染页面数据 end ---------------------------------------->

//4.设置seo信息 start---------------------------------------->
//4.1 设置seo信息
const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
    method: 'GET',
    query: {
        'catid': routeId
    },
});

if (setData.code == 200) {
    let seoTitle = setData.data.seo_title;
    let seoDescription = setData.data.seo_description;
    let seoKeywords = setData.data.seo_keywords;
    let seoSuffix = setData.data.suffix;
    let seoName = setData.data.website_name;

    useSeoMeta({
        title: seoTitle + "_" + seoName + "_" + seoSuffix,
        meta: [
            { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
            { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
            { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no',tagPriority: 10 }
        ]
    });
} else {
    console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
    console.log("错误位置：设置分类页面SEO数据")
    console.log("后端错误反馈：", setData.message)
    console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
}
//4.设置seo信息 end---------------------------------------->
</script>

<style lang="less" scoped>
@import '@/assets/css/class.less';
</style>

<style lang="less" scoped>
     
@media screen and (min-width:801px){/*ipad_phone*/
        .part_1{display:none;}
     .zixuntuijian .innerLeft .zixunTop .zixunRight .towPic .picBox span{display:none;}

}

@media screen and (max-width:800px){/*ipad_phone*/
    .farmingPartOne{height:auto;overflow:hidden; }
    .farmingPartOne .inner .innerLeft{height:auto;overflow:hidden;width:100%;}
    .innerLeft>.title{width:100%;}
    .farmingPartOne .inner .innerLeft .leftTop{width:100%;margin:0px auto 10px;height:auto;}
     

    .farmingPartOne .inner .innerLeft .leftTop .leftTopPhoto{height:55vw; overflow:hidden;margin:15px auto 17px; border-radius:10px; width:100%;}
    .farmingPartOne .inner .innerLeft .leftTop .leftTopPhoto img {width:100%;height:100%;display:block;}

    .farmingPartOne .inner .innerLeft .leftTop .leftTopPhoto span{width:100%;box-sizing:border-box;font-size:16px;}

    
    .farmingPartOne .inner .innerLeft .leftTop > ul.left{
        margin:7px 0px 0px;width:100%;height:123px;
          
    }

    .farmingPartOne .inner .innerLeft .leftTop > ul.left > li{
        width:100%; font-size:16px;
        display:none;
    }
    .farmingPartOne .inner .innerLeft .leftTop > ul.left > li:nth-of-type(-n+5){
        display: block;
    }


    .innerLeft>.title>h3{border-bottom:solid 1px #D9D9D9;line-height:50px;height:50px;} 
    .innerLeft>.title>h3 a{font-size:18px;color: #49a769;float:left;height:100%;line-height:50px;
                         border-bottom:solid 3px #49a769;box-sizing:border-box;   
    }

    .farmingPartOne .inner .innerLeft .leftTop > ul.left > li em{border-radius:0px;width:6px;height:6px;
                background:#E6E6E6;}

    .farmingPartOne .inner .innerLeft .leftBottom{display:none;}    
    .innerRight{width:100%;}    

    .farmingPartOne .inner {height:auto;}  
     .farmingPartOne .inner .innerRight .rightList{min-height:344px; height:auto;margin:15px auto 6px;}   


     .innerRight>.title>h3{border-bottom:solid 1px #D9D9D9;line-height:50px;height:50px;margin:6px auto 0px; }
     .innerRight>.title>h3 a{font-size:18px;color: #49a769;float:left;height:100%;line-height:50px;
                         border-bottom:solid 3px #49a769;box-sizing:border-box;   }




     .farmingPartOne .inner .innerRight .rightList > li:nth-of-type(1){
         height:55vw;overflow:hidden;border-radius:10px;
        position:relative;float:none;margin-bottom:24px;

         >a{width:100%;height:100%;display:block;}
         >a img{width:100%;height:100%;display:block;float:none;}

         p>a{
            position:absolute;width:100%;box-sizing:border-box;padding:0px 10px;
            height:50px;line-height:50px;font-size:16px;color:#fff;
            left:0px;bottom:0px;background:linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000);
            word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
          }
     }   

     .farmingPartOne .inner .innerRight .rightList > li:nth-of-type(n+2){
         overflow:hidden;margin-bottom:19px;
        line-height:22px;height:22px;

        img{display:none;}
        p{display:block;width:100%;line-height:22px;height:22px;margin-bottom:22px;-webkit-line-clamp:1;box-sizing:border-box;padding:0;}
        p a{width:100%;line-height:22px;height:22px;font-size:16px;font-weight:normal;
                display:block;text-indent:14px;position:relative;
                word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;}

        p a::before{
            content:"";
            position:absolute;
            left:0px;top:8px;
             width: 6px;
            height: 6px;
            background: #E6E6E6;
             
        }
        
    }
    .farmingPartOne .inner .innerRight .rightList > li:nth-last-of-type(1){margin-bottom:0px;}

    .farmingPartOne .inner .innerRight .rightList > li:nth-of-type(n+5){display:none;}

    .farmingPartTwo{height:auto;width:92%;margin:10px auto 0;}
    .farmingPartTwo .inner{width:100%;height:auto;}
    .farmingPartTwo .inner > .farmer > .title > h3{font-size:18px;border-bottom:solid 1px #D9D9D9;line-height:50px;height:50px;}
    .farmingPartTwo .inner > .farmer > .title > h3 a{font-size:18px;color: #49a769;float:left;height:100%;line-height:50px;
                         border-bottom:solid 3px #49a769;box-sizing:border-box; }

    .farmingPartTwo .inner > .farmer{width:100%;margin:0px auto;float:none;height:auto;}
    .farmingPartTwo .inner > .farmer > .title{width:100%;}
    .farmingPartTwo .inner > .farmer .PartTwoPhoto{
        width:100%;height:55vw;overflow:hidden;border-radius:10px;margin:15px auto 0px;
        
        >div{display:block;width:100%;height:100%;}
        a {display:block;width:100%;height:100%;}
        img {display:block;width:100%;height:100%;}
        span {display:block;width:100%;font-size:16px;}
    }

    .farmingPartTwo .inner > .farmer .PartTwoList{
        width:100%;height:124px;padding-top:0px;overflow:hidden;margin:24px auto 0px;
        box-shadow:0px 0px 0px rgba(0,0,0,0);
         
    }
    .farmingPartTwo .inner > .farmer .PartTwoList> li{
        width:100%;height:22px;line-height:22px;
        font-size:16px;margin-bottom:19px;font-weight:normal;
        display:none;

        em{border-radius:0px; margin:9px 9px 0px 0px;float:left;width:6px;height:6px;}
        a{display:block; line-height:22px;height:22px;font-weight:normal;box-sizing:border-box;padding:0;
            word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
        }
    }

    .farmingPartTwo .inner > .farmer .PartTwoList> li:nth-of-type(-n+3){
        display:block;
    }
    .farmingPartTwo .inner > .farmer .PartTwoList> li:nth-of-type(3){
        margin-bottom:0px;
    }


    .farmingPartTwo .inner > .farmer:nth-of-type(2) > .title{ margin-top:5px;  }
    .farmingPartTwo .inner > .farmer:nth-of-type(3) > .title{margin-top:6px; }
    .zixuntuijian{width:100%;height:auto; 
        
        .innerLeft .zixunTop .zixunLeft > .title > h3{font-size:18px;border-bottom:solid 1px #D9D9D9;line-height:50px;height:50px;}
        .innerLeft .zixunTop .zixunLeft > .title > h3 a{font-size:18px;color: #49a769;float:left;height:100%;line-height:50px;
                         border-bottom:solid 3px #49a769;box-sizing:border-box;   }

        .innerLeft{width:100%; }

        .zixunLeft{float:none;margin:0px auto;width:100%;}
    }

    .zixuntuijian .innerLeft .zixunTop .zixunLeft{width:100%;float:none;height:auto;}
    .zixuntuijian .innerLeft .zixunTop .zixunLeft > .title{margin-top:5px; line-height:33px;width:100%; }



    .zixuntuijian .innerLeft .zixunTop .zixunLeft .photo_text{width:100%; min-height:330px;}
    .zixuntuijian .innerLeft .zixunTop .zixunLeft .photo_text li:nth-of-type(1){
        margin:15px auto 24px;
        width:100%;height:55vw;display:block;border-radius:10px;
        article{display:block;width:100%;height:100%;position:relative;}
        
        article>a{display:block;width:100%;height:100%;}
        img{display:block;width:100%;height:100%;}
        p{display:none;}
        em{display:none;}
        article>div{float:none;width:100%;height:100%;padding:0;background:rgba(0,0,0,0);
                        position:absolute;left:0px;top:0px;}

        h5{float:none;width:100%!important;height:100%!important;padding:0;background:rgba(0,0,0,0);
                        position:absolute;left:0px;top:0px; }

        h5>a{position:absolute;width:100%;height:50px;line-height:50px;font-size:16px;color:#fff;
                left:0px; bottom:0px;padding:0px 13px;box-sizing:border-box;    font-weight:normal;
                    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000);
        }                

    }
    .zixuntuijian .innerLeft .zixunTop{height:auto;overflow:hidden;}
 
    .zixuntuijian .innerLeft .zixunTop .zixunLeft .photo_text li:nth-of-type(n+2){
        line-height:22px;height:22px;font-weight:normal;font-size:16px;margin-bottom:19px;
        width:100%;
         

        em{width:6px;height:6px;border-radius:0px;float:left;margin:8px 6px 0px 0px;}
        a{line-height:22px;height:22px;display:block;
            word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
        }
    }

    .zixuntuijian .innerLeft .zixunTop .zixunRight{width:100%;height:auto;}
    .zixuntuijian .innerLeft .zixunTop .zixunRight > .title{width:100%;margin-top:6px; }
    .zixuntuijian .innerLeft .zixunTop .zixunRight > .title > h3{font-size:18px;
        border-bottom:solid 1px #D9D9D9;line-height:50px;height:50px;
    }
    .zixuntuijian .innerLeft .zixunTop .zixunRight > .title > h3 a{
        font-size:18px;color: #49a769;float:left;height:100%;line-height:50px;
                         border-bottom:solid 3px #49a769;box-sizing:border-box;
    }

    .zixuntuijian .innerLeft .zixunTop .zixunRight .towPic{width:100%;height:auto;margin:15px auto 25px;}

    .zixuntuijian .innerLeft .zixunTop .zixunRight .towPic .picBox{display:none;}
    .zixuntuijian .innerLeft .zixunTop .zixunRight .towPic .picBox:nth-of-type(1){display:block;

        width:100%;height:55vw;border-radius:10px;overflow:hidden;margin:0;

        div{display:block;width:100%;height:100%;}
        a{display:block;width:100%;height:100%;position:relative;}
        img{display:block;width:100%;height:100%;}

        span{    position: absolute;
            width: 100%;
            height: 50px;
            line-height: 50px;
            font-size: 16px;
            color: #fff;
            left: 0px;
            bottom: 0px;
            padding: 0px 13px;
            box-sizing: border-box;
            font-weight: normal;
            font-size:16px;
            background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000);
        }
    }

    .zixuntuijian .innerLeft .zixunTop .zixunRight .photo_text li{
        line-height:22px;height:22px;font-weight:normal;font-size:16px;margin-bottom:19px;
        width:100%;

        em{width:6px;height:6px;border-radius:0px;float:left;margin:8px 6px 0px 0px; }
    }

    .zixuntuijian .innerLeft .zixunBottom{width:100%;height:auto;overflow:hidden;display:none;}

    .zixuntuijian .innerRight .information{width:100%; min-height:331px;margin:15px auto 10px;}

    .zixuntuijian .innerRight .information li:nth-of-type(1){
        width:100%;height:55vw;display:block;border-radius:10px;overflow:hidden;
         position:relative;margin-bottom:23px;

        a{display:block;width:100%;height:100%;}
        img{display:block;width:100%;height:100%;}
        .text{position:absolute;width:100%;height:100%;left:0px;top:0px;
                padding:0;background:rgba(0,0,0,0);
        }
        h5{position:absolute;width:100%;height:100%;left:0px;top:0px;
                padding:0;background:rgba(0,0,0,0);display:block;
        }
        p{display:none;}

        h5>a{position:absolute;width:100%;height:50px;line-height:50px;font-size:16px;color:#fff;
                left:0px; bottom:0px;padding:0px 13px; box-sizing:border-box;font-weight:normal;
                    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000);
                    word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;     
                }           

    }
    .zixuntuijian .innerRight .information li:nth-of-type(n+2){

        height:22px;line-height:22px;margin-bottom:19px;
         display:block;width:100%;

        >a{display:none;}

        .text{display:block;width:100%;height:100%;padding:0;}
        h5{display:block;width:100%;height:100%;padding:0;}
        h5 a{height:22px;line-height:22px;display:block;position:relative;
             font-size:16px;font-weight:normal;   text-indent:12px;width:100%;
             word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
        }
        h5 a::after{content: '';display: block ;
                background:#d9d9d9;position:absolute;
                left:0px;top:8px;
                width: 6px;
                height: 6px; 
        }



        p{display:none;}

        // a{line-height:22px;height:22px;display:block;
        //     word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
        // }
    }

    .zixuntuijian .innerRight .information li:nth-last-of-type(1){
        margin-bottom:0px;
    }

    .zixuntuijian .innerLeft .zixunTop .zixunRight .photo_text{ height:104px;}

    .part_1{width:100%;height:11px;}
    .add_height{height:44vw!important; }

    .phone_head_1{margin-top:26px!important; }


}

</style>










